<template>
    <div>
      <div v-if="this.$store.state.wuyemanage">
            <!--1-->
            <el-row class="nav_a_top">
                <el-col :span="12"><div class="grid-content bg-purple">合作公司</div></el-col>
                <el-col :span="12" @click.native="addcangui"><div class="grid-content bg-purple-light"><div class="nav_a_top_div">添加合作公司</div></div></el-col>
            </el-row>
            <!--3-->
            <table class="nav_a_table fs12">
                        <tr>
                            <td>编号</td>
                            <td>公司名称</td>
                            <td>详细地址</td>
                            <td>联系人</td>
                            <td>手机号</td>
                            <td>添加时间</td>
                            <td>管理人员</td>
                            <td>状态</td>
                            <td>操作</td>
                        </tr>
                        <tr>
                            <td>0371001</td>
                            <td>大管家物业有限公司</td>
                            <td>河南省郑州市金水区东风南路海汇中心6号楼1楼大厅西北角</td>
                            <td>阿达西</td>
                            <td>15733333333</td>
                            <td>1017-11-09 18：09</td>
                            <td>王美丽</td>
                            <td>启用</td>
                            <td><button class="nav_a_button">详情</button><button class="nav_a_button">禁用</button></td>
                        </tr>
            </table>   
      </div>
      <div v-if="this.$store.state.wuyeadd">
        <wuyeaddzj></wuyeaddzj>
      </div>
    </div>
</template>
<script>
    import wuyeaddzj from './cangui_tjwygs.vue'
export default {
  name:'wygsgl',
  data () {
    return {
    }
  },
    methods:{
            addcangui:function(){
                this.$store.state.wuyemanage=false;
                this.$store.state.wuyeadd=true;
            },
        },
    components:{
        wuyeaddzj
    }
}
</script>
<style scoped>
/*1*/
.nav_a_top{height: 40px;background-color: white;padding: 10px;}
.nav_a_top>div:nth-child(2){text-align: center;}
.nav_a_top_div{width: 100px;float: right;border: 1px solid #A9A9A9;}
/*3*/
.nav_a_table{width: 100%;margin-top: 20px;}
.nav_a_table>tr:nth-child(1) td{padding: 15px 20px;background-color: #cdcdcd;border: 1px solid #bbbbbb;box-sizing: border-box;text-align: center}
.nav_a_table>tr td{padding: 15px 20px;background-color: white;border: 1px solid #bbbbbb;box-sizing: border-box;text-align:center;}
.nav_a_button{padding: 3px;box-sizing: border-box;margin-right:5px;}
.nav_a_table table{padding: 3px;}
</style>